//
//  Element.m
//  primoPrj
//
//  Created by Giuseppe on 28/11/13.
//
//

#import "Element.h"

@implementation Element

@synthesize name = _name;
@synthesize description = _description;
@synthesize origin = _origin;
@synthesize img = _img;
@synthesize tel = _tel;
@synthesize date = _date;
@synthesize elementID = _id;


- (id)initWithName:(NSString *)name ID: (int) elID Origin:(NSString *)origin Description:(NSString *)description Image:(NSString *)img Telefono:(NSString *)tel Date:(NSString *)date

{
    self = [super init];
    
    if (self) {
        
        _id = elID;
        _name = [[NSString alloc]initWithString:name];
        _origin = [[NSString alloc]initWithString:origin];
        _description = [[NSString alloc]initWithString:description];
        
        _img = [[NSString alloc]initWithString:img];
        _tel = [[NSString alloc]initWithString:tel];
        _date = [[NSString alloc]initWithString:date];
        
    }
   

    return self;
}



@end
